package org.dromara.business.modules.favorites.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dromara.business.modules.favorites.domain.BuFavorites;
import org.dromara.business.modules.favorites.domain.vo.BuFavoritesVo;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

/**
 * 用户收藏Mapper接口
 *
 * @author ckk
 * @date 2025-11-12
 */
@Mapper
public interface BuFavoritesMapper extends BaseMapperPlus<BuFavorites, BuFavoritesVo> {

    @DataPermission({@DataColumn(key = "userName", value = "create_by")})
    default Page<BuFavoritesVo> queryPageList(Page<BuFavorites> page, @Param(Constants.WRAPPER) Wrapper<BuFavorites> queryWrapper) {
        return this.selectVoPage(page, queryWrapper);
    }

}
